/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Administrator
 */
@Entity
@Table(name = "t_uagroups")
//@NamedQueries({@NamedQuery(name = "TUagroups.findAll", query = "SELECT t FROM TUagroups t"), @NamedQuery(name = "TUagroups.findByUagroupid", query = "SELECT t FROM TUagroups t WHERE t.uagroupid = :uagroupid"), @NamedQuery(name = "TUagroups.findByEmployeeId", query = "SELECT t FROM TUagroups t WHERE t.employeeId = :employeeId"), @NamedQuery(name = "TUagroups.findByGroupname", query = "SELECT t FROM TUagroups t WHERE t.groupname = :groupname"), @NamedQuery(name = "TUagroups.findByInfo", query = "SELECT t FROM TUagroups t WHERE t.info = :info")})
public class TUagroups implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "uagroupid")
    private String uagroupid;
    @Column(name = "employee_id")
    private String employeeId;
    @Column(name = "groupname")
    private String groupname;
    @Column(name = "info")
    private String info;

    public TUagroups() {
    }

    public TUagroups(String uagroupid) {
        this.uagroupid = uagroupid;
    }

    public String getUagroupid() {
        return uagroupid;
    }

    public void setUagroupid(String uagroupid) {
        this.uagroupid = uagroupid;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (uagroupid != null ? uagroupid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TUagroups)) {
            return false;
        }
        TUagroups other = (TUagroups) object;
        if ((this.uagroupid == null && other.uagroupid != null) || (this.uagroupid != null && !this.uagroupid.equals(other.uagroupid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TUagroups[uagroupid=" + uagroupid + "]";
    }

}
